package com.fz.service.system;

import com.fz.common.ResponseEntity;
import com.fz.dto.system.dictionary.DictAdd;
import com.fz.dto.system.dictionary.DictQuery;
import com.fz.dto.system.dictionary.DictUpd;
import com.fz.vo.system.dictionary.DictionaryTreeVo;

public interface DictionaryService {
     ResponseEntity findDictList(String desc, int pageSize, int pageNum) throws Exception;

     ResponseEntity saveDict(DictAdd dictAdd) throws Exception;

     ResponseEntity updateDict(DictUpd dictUpd) throws Exception;

     ResponseEntity delDict(String ids) throws Exception;

    /**
     * 查询字典以及字典值
     *
     * @param pageNum   页 码
     * @param pageSize  页 数
     * @param dictQuery 查询条件
     * @return
     */
    ResponseEntity<DictionaryTreeVo> findDictValueList(Integer pageNum, Integer pageSize, DictQuery dictQuery);
}
